package base;

import java.util.UUID;

import base.value.Value;

public class UserObjectBuilder {

	protected UserObject value;
	
	public UserObjectBuilder() {
		super();
	}
	
	public UserObjectBuilder(UserObject setUo) {
		this.value = setUo;
	}

	public UserObjectBuilder newInstance(){
		value = new UserObject();
		return this;
	}
	
	public UserObject getUserObject() {
		return value;
	}

	public UserObjectBuilder setValue(Value<?> value) {
		getUserObject().addValue(value);
		return this;
	}
	
	public UserObjectBuilder removeValue(Value.String value) {
		getUserObject().removeValue(value);
		return this;
	}

	public UserObjectBuilder setUuid(UUID uuid) {
		getUserObject().context.uuid = uuid;
		return this;
	}
	
}
